<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('game_ncdh_betting_sort')->truncate();
        DB::table('game_ncdh_betting_sort')->insert([
            ['name'=>'养殖区','odds'=>'1.86','parent_id'=>0,'level'=>1,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'灾害区','odds'=>'100','parent_id'=>0,'level'=>0,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'种植区','odds'=>'1.86','parent_id'=>0,'level'=>1,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'家畜','odds'=>'3.6','parent_id'=>1,'level'=>2,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'水产','odds'=>'3.6','parent_id'=>1,'level'=>2,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'粮食','odds'=>'3.6','parent_id'=>2,'level'=>2,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'蔬菜','odds'=>'3.6','parent_id'=>2,'level'=>2,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'土猪','odds'=>'10','parent_id'=>4,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'奶牛','odds'=>'10','parent_id'=>4,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'母鸡','odds'=>'10','parent_id'=>4,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'海鱼','odds'=>'10','parent_id'=>5,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'河虾','odds'=>'10','parent_id'=>5,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'螃蟹','odds'=>'10','parent_id'=>5,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'小麦','odds'=>'10','parent_id'=>6,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'水稻','odds'=>'10','parent_id'=>6,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'玉米','odds'=>'10','parent_id'=>6,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'青菜','odds'=>'10','parent_id'=>7,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'豌豆','odds'=>'10','parent_id'=>7,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")],
            ['name'=>'大葱','odds'=>'10','parent_id'=>7,'level'=>3,'created_at'=>date("Y-m-d H:i:s"),'updated_at'=>date("Y-m-d H:i:s")]
        ]);
    }
}
